package com.itheima.mydemo.test1;

import com.sun.source.tree.IfTree;

class Body {
     boolean islive ;
    String ceil ="肉身的细胞";

    public Body(boolean islive) {
        this.islive = islive;
    }

     class Heart{
         String ceil ="心脏的细胞";
        public  void heartBEAT() {
            if(islive){
                System.out.println("是心动啊");

            }else {
                System.out.println("凉了");
            }
        }
    }
}
